package yunwo.cn.yzstation.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import yunwo.cn.yzstation.R;
import yunwo.cn.yzstation.base.BasicAdapter;
import yunwo.cn.yzstation.bean.CarOBJBean;

/**
 * Created by lao on 2017/10/13.
 */

public class MygvAdatper extends BasicAdapter<CarOBJBean.DataBean> {
    public MygvAdatper(Context mctx) {
        super(mctx);
    }

    @Override
    protected int setItemLayout() {
        return R.layout.gv_item;
    }

    @Override
    protected void bindData(View convertView, CarOBJBean.DataBean data, int position) {
        TextView name = get(convertView, R.id.tvname);
        name.setText(data.getOrganName());

    }
}
